package org.example.lds240404.DeadLock;

/**
 * @author: hero生仔
 */
public class Main {
    public static void main(String[] args) {
        LockDemo lock1 = new LockDemo("lock1");
        LockDemo lock2 = new LockDemo("lock2");

        new Thread(new DeadLock(lock1, lock2)).start();
        new Thread(new DeadLock(lock2, lock1)).start();
    }
}
